public class Main {
    public static void main(String args[]) {
        String str="abcwwwwzzzxxxx123you 你是谁?"; String regex="\\D+";
        str=str.replaceAll (regex,""); System.out.println(str);
    }
}